package edu.sctu.practice.class01.zhoumengxue.test.test02;

/**
 * 请定义一个交通工具(Vehicle)的类，其中有:
 * 属性：速度(speed)，体积(size)等等
 * 方法：移动(move())，设置速度(setSpeed(intspeed))，加速speedUp(),减速speedDown()等等.
 * Created by ASUS on 2015/10/8.
 */
public class Vehicle {

    private int speed;
    private double size;

    public Vehicle(int speed, double size) {
        this.size = size;
        this.speed = speed;
    }

    public void setSize(double size) {
        this.size = size;
    }

    public double getSize() {
        return size;
    }

    public void move() {

    }

    public int speedUp() {
        return speed + 5;
    }

    public int speedDown() {
        return speed - 5;
    }
}
